package com.prik.strategy.duck.pojo;

import com.prik.strategy.duck.behavior.impl.FlyWithWings;

/**
 * 红头鸭
 * @author prik
 * @date 2019/7/12
 */
public class RedheadDuck extends Duck {

    public RedheadDuck() {
        flyBehavior = new FlyWithWings();
    }

    /**
     * 外观
     */
    @Override
    public void display() {
        System.out.println("我是红头鸭");
    }

}
